package com.bwda.dsrs.systemservice.domain.form.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author yangjun
 */
@Data
@ApiModel(description = "菜单表")
public class MenuUpdateForm {

	@ApiModelProperty(value = "菜单ID", required = true)
	@NotNull(message = "菜单ID不能为空")
	private Integer id;

	@ApiModelProperty(value = "菜单编码")
	private String menuCode;

	@ApiModelProperty(value = "菜单名称")
	private String menuName;

	@ApiModelProperty(value = "父菜单ID")
	private Integer parentMenuId;

	@ApiModelProperty(value = "菜单链接")
	@Size(min = 0, max = 64 ,message = "最长不超过64，请重新输入！")
	private String menuUrl;

	@ApiModelProperty(value = "0链接 1按钮")
	private Integer menuType;

	@ApiModelProperty(value = "0是1不是")
	private Integer isSysMenu;

	@ApiModelProperty(value = "0正常1不展示")
	private Integer isShow;

	@ApiModelProperty(value = "排序")
	private Integer orderNum;

	@ApiModelProperty(value = "图标")
	private String icon;

}